package my.springboot.aop;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

import lombok.extern.slf4j.Slf4j;

@Slf4j
@Configuration
@ComponentScan("my.springboot.aop")
@EnableAspectJAutoProxy
public class Main {
	
	public static void main(String[] args) {
		AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(Main.class);
		NormalService bean = context.getBean(NormalService.class);	
		log.debug("【main】result:{}",bean.getResult());
		log.debug("【main】result:{}",bean.getResult("hhh"));
		context.close();
	}
}
